var module = require('./com/swancor/test/module');
module.setName('a1');
module.sayHello();
console.log("=====================================================");
var singleobject = require('./com/swancor/test/singleobject');
singleobject = new singleobject();
singleobject.setName('a2');
singleobject.sayHello();
console.log("=====================================================");
function User(name, uri) {
	 
	 this.name = name;
	 this.uri = uri;

	 this.display = function() {
	 console.log(this.name +' <> '+this.uri );
	 }
	 
}
var someuser = new User('byvoid', 'http://www.byvoid.com');
someuser.display();
console.log("=====================================================");
     var someuser = {
		name: 'byvoid',
		display: function() {
		  console.log(this.name);
        }
     };
     
     someuser.display();
	 
     var foo = {
    		     name: 'foobar', 
    		      bar: someuser.display
			   };
     
	foo.bar(); 
console.log("=====================================================");
	var num = 9;
	var literal = '9';
	if (num === literal) {
	   console.log('Should not be here!!!');
	}else{
	   console.log('be here!!!');
	}
console.log("=====================================================");
	var SayModule = require('./com/swancor/test/say.js');
	console.log(SayModule.say1());
	console.log(SayModule.say2());
	console.log(SayModule.say3());
console.log("=====================================================");	
	